<!--$embed{"header.htm"}-->

<div class="mainarea">
	<div class="maininner">
	
		<form method="post" action="admincp.html">
			<div class="block style4">
				
				<table cellspacing="3" cellpadding="3">
				
				<tr>
					<th>举报类型</th><td>
					<select name="idtype">
					<option value="">不限</option>
					<option value="picid"<!--$if{ idtype == 'picid'}--> selected<!--$end-->>图片</option>
					<option value="album"<!--$if{ idtype == 'album'}--> selected<!--$end-->>相册</option>
					<option value="blog"<!--$if{ idtype == 'blog'}--> selected<!--$end-->>日志</option>
					<option value="mtag"<!--$if{ idtype == 'mtag'}--> selected<!--$end-->>群组</option>
					<option value="thread"<!--$if{ idtype == 'thread'}--> selected<!--$end-->>主题</option>
					<option value="space"<!--$if{ idtype == 'space'}--> selected<!--$end-->>空间</option>
					</select>
					</td>
					<th>举报状态</th><td>
					<select name="status">
					<option value="2">不限</option>
					<option value="0"<!--$if{ status == '0'}--> selected<!--$end-->>已忽略</option>
					<option value="1"<!--$if{ status == '1'}--> selected<!--$end-->>待处理</option>
					</select></td>
				</tr>
				
				<tr><th>举报次数</th><td colspan="3">
					<input type="text" name="num1" value="${num1}" size="10"> ~
					<input type="text" name="num2" value="${num2}" size="10">
				</td></tr>
				
		
				<tr><th>结果排序</th>
				<td colspan="3">
				<select name="orderby">
				<option value="">默认排序</option>
				<option value="dateline"${orderby['dateline']}>举报时间</option>
				<option value="num"${orderby['viewnum']}>举报数</option>
				</select>
				<select name="ordersc">
				<option value="desc"${ordersc['desc']}>递减</option>
				<option value="asc"${ordersc['asc']}>递增</option>
				</select>
				<select name="perpage">
				<option value="20"${perpages['20']}>每页显示20个</option>
				<option value="50"${perpages['50']}>每页显示50个</option>
				<option value="100"${perpages['100']}>每页显示100个</option>
				<option value="1000"${perpages['1000']}>一次处理1000个</option>
				</select>
				<input type="hidden" name="ac" value="report">
				<input type="submit" name="searchsubmit" value="搜索" class="submit">
				</td>
				</tr>
				</table>
		
			</div>
		</form>
	
	<!--$if{ list}-->
	
		<form method="post" action="admincp.html?ac=report">
		<input type="hidden" name="formhash" value="<!--${&com.heaven.web.utils.Common.formhash()}-->" />
		<div class="bdrcontent">
			<div class="title" id="base">
				<h3>
					<a href="admincp.html?ac=${ac}&perpage=20&status=1&searchsubmit=1">待处理举报</a> | 
					<a href="admincp.html?ac=${ac}&perpage=20&status=0&searchsubmit=1">已忽略举报</a>
				</h3>
			</div>
		<!--$if{ perpage>100}-->
			<p>总共有满足条件的数据 <strong>${count}</strong> 个</p>
			<!--$for{value:list}-->
			<input type="hidden" name="ids[]" value="${value['rid']}">
			<!--$end-->
		
		<!--$else-->
			<table cellspacing="0" cellpadding="0" class="formtable" border="0">
			<tr>
				<td width="25">&nbsp;</td>
				<th>内容</th>
				<th width="50"><a href="admincp.html?ac=${ac}&perpage=20&orderby=num&ordersc=${scstr}&status=${status}&searchsubmit=1">次数</a></th>
				<th width="120"><a href="admincp.html?ac=${ac}&perpage=20&orderby=dateline&ordersc=${scstr}&status=${status}&searchsubmit=1">时间</a></th>
				<th width="120">操作</th>
			</tr>
			
			<!--$for{entry:list} $set{report = entry.value} $set{key = entry.key}-->
				<!--$for{subentry:report} $set{value=subentry.value}-->
				<tr <!--$if{ value['new']}-->bgcolor="#F2F9FD"<!--$end-->>
					<td>
						<input type="checkbox" name="ids[]" value="${value['rid']}">
					</td>
					<td>
						<!--$if{!value['info']}-->
							信息已被删除<br>
						<!--$else-->
						<!--$if{ key=='blog'}-->
						<a href="space.html?uid=${value['info']['uid']}&do=blog&id=${value['info']['blogid']}" target="_blank">${value['info']['subject']}</a><br>
						<!--$elseif{ key=='pic'}-->
						<a href="space.html?uid=${value['info']['uid']}&do=album&picid=${value['info']['picid']}" target="_blank"><img src="${value['info']['pic']}" width="90" alt="${value['info']['filename']}"></a><br>
						${value['info']['title']}<br>
						<!--$elseif{ key=='album'}-->
						<a href="space.html?uid=${value['info']['uid']}&do=album&id=${value['info']['albumid']}" target="_blank"><img src="${value['info']['pic']}" alt="${value['info']['albumname']}" width="100" height="90"></a><br>
						${value['info']['albumname']}<br>
						<!--$elseif{ key=='thread'}-->
						<a href="space.html?do=thread&id=${value['info']['tid']}" target="_blank">${value['info']['subject']}</a><br>
						<!--$elseif{ key=='mtag'}-->
						<a href="space.html?do=mtag&tagid=${value['info']['tagid']}" target="_blank">${value['info']['tagname']}</a><br>
						<!--$elseif{ key=='share'}-->
						<p><a href="admincp.html?ac=share&uid=${value['info']['uid']}">${value['info']['username']}</a> ${value['info']['title_template']} &nbsp;<!--${&com.heaven.web.utils.Common.date(value['info']['dateline'],'yyyy-MM-dd HH:mm')}--></p>
							${value['info']['body_template']}<br>
						<!--$elseif{ key=='space'}-->
						<a href="space.html?uid=${value['info']['uid']}" target="_blank"><img src="<!--${&com.heaven.web.utils.Common.avatar(value['info']['uid'],'small')}-->" alt="${value['info']['username']}" class="avatar" /></a><br>
						用户名: <a href="space.html?uid=${value['info']['uid']}">${value['info']['username']}</a><br>
						<!--$end-->
						<!--$end-->
						<strong>举报理由:</strong><br>
						<ul>${value['reason']}</ul>
					</td>
					<td>${value['num']}</td>
					<td>
						类型:
						<!--$if{ key=='blog'}-->
						日志
						<!--$elseif{ key=='pic'}-->
						图片
						<!--$elseif{ key=='album'}-->
						相册
						<!--$elseif{ key=='thread'}-->
						话题
						<!--$elseif{ key=='mtag'}-->
						群组
						<!--$elseif{ key=='share'}-->
						分享
						<!--$elseif{ key=='space'}-->
						空间
						<!--$end-->
						<br>
						查阅状态:<!--$if{ value['new']}-->未读<!--$else-->已读<!--$end--><br>
						<!--${&com.heaven.web.utils.Common.date(value['dateline'],'yyyy-MM-dd')}-->
					</td>
					<td>
						<a href="admincp.html?ac=report&rid=${value['rid']}&op=ignore">禁止举报</a><br>
						<a href="admincp.html?ac=report&rid=${value['rid']}&op=delete" onclick="return confirm('本操作不可恢复，确认继续？');">删除举报</a><br>
						<a href="admincp.html?ac=report&rid=${value['rid']}&op=delete&subop=delinfo" onclick="return confirm('本操作不可恢复，确认继续？');">删除举报及<!--$if{ key=='blog'}-->
							日志信息
							<!--$elseif{ key=='pic'}-->
							图片信息
							<!--$elseif{ key=='album'}-->
							相册信息
							<!--$elseif{ key=='thread'}-->
							话题信息
							<!--$elseif{ key=='mtag'}-->
							群组
							<!--$elseif{ key=='share'}-->
							分享信息
							<!--$elseif{ key=='space'}-->
							空间
							<!--$end-->
						</a>
					</td>
				</tr>
				<!--$end-->
			<!--$end-->
			</table>
		<!--$end-->
		</div>
		
		<div class="footactions">
			<!--$if{ perpage<=100}--><input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选<!--$end-->
			<input type="hidden" name="mpurl" value="${mpurl}">
			操作类型：
			<input type="radio" name="optype" value="1" checked>禁止举报
			<input type="radio" name="optype" value="2">删除举报
			<input type="radio" name="optype" value="3">删除举报及信息或者空间
			<input type="submit" name="listsubmit" value="批量操作" class="submit" onclick="return confirm('本操作不可恢复，确认继续？');">
		
			<div class="pages">${multi}</div>
		</div>
		</form>
	<!--$else-->
		<div class="bdrcontent">
			<div class="title" id="base">
				<h3>
					<a href="admincp.html?ac=${ac}&perpage=20&status=1&searchsubmit=1">待处理举报</a> | 
					<a href="admincp.html?ac=${ac}&perpage=20&status=0&searchsubmit=1">已忽略举报</a>
				</h3>
			</div>
			<p>指定条件下还没有数据</p>
		</div>
	<!--$end-->
	</div>
</div>


<div class="side">
	<!--$embed{"side.htm"}-->
</div>

<!--$embed{"footer.htm"}-->